﻿<Window x:Class="Demos.GraphColorer.View"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Graph Colorer" Height="600" Width="550" Name="view"
        xmlns:local="clr-namespace:Demos.GraphColorer">

    <DockPanel>
        <Grid DockPanel.Dock="Bottom" Margin="5">
            <Grid.RowDefinitions>
                <RowDefinition></RowDefinition>
                <RowDefinition></RowDefinition>
                <RowDefinition Height="Auto"></RowDefinition>
                <RowDefinition Height="Auto"></RowDefinition>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition></ColumnDefinition>
                <ColumnDefinition></ColumnDefinition>
                <ColumnDefinition></ColumnDefinition>
                <ColumnDefinition></ColumnDefinition>
            </Grid.ColumnDefinitions>

            <Button Grid.Column="0" Margin="5" Command="{Binding VerSolucionCommand}">Ver Solucion</Button>
            <Button Grid.Column="1" Margin="5" Command="{Binding ReiniciarCommand}">Reiniciar</Button>
            <Button Grid.Column="3" Margin="5" Click="SalirClick">Salir</Button>
        </Grid>

        <local:GrafoUserControl 
            ContenidoVisual="{Binding Arbol, UpdateSourceTrigger=PropertyChanged}"
            DataContext="{Binding ElementName=view, Path=DataContext}"/>
    </DockPanel>
</Window>
